package cn.edu.scau.cmi.dengzejun.chapter08;

public class Example8_3 {
	public static void main(String args[]) {
		HelloMachine machine=new HelloMachine();
		machine.trunOn(new SpeakHello() {
			public void speak() {
				System.out.println("hello ,you are welcome~");
				return;
			}
		}
		);
		machine.trunOn(new SpeakHello() {
			public void speak() {
				System.out.println("Hello,welcome~");
				return;
			}
		}
		);
		return;
	}
}
